<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>{$type.typename}-{$config.sitetitle}</title>
<meta name="Keywords" content="{$type.keywords}" />
<meta name="Description" content="{$type.description}"/>
<link rel="shortcut icon" href="__TMPL__/images/favicon.ico" type="image/x-icon" />
<link href="__TMPL__/images/default.css" rel="stylesheet" type="text/css"/>
<script src="__TMPL__/js/common.js" type="text/javascript"></script>
<neq name="config.rollnum" value="0"><script src="__TMPL__/js/marquee.js" type="text/javascript"></script></neq>
<script src="__TMPL__/js/jquery-1.4.2.min.js" type="text/javascript"></script>
<link href="__PUBLIC__/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
<link href="__PUBLIC__/js/bootstrap.min.js" type=text/css rel=stylesheet>
</head>
<body>
<include file="$head"/>
<div id="wrapper" style="clear:both;">
<style>
*, *:before, *:after {
-webkit-box-sizing: inherit; 
-moz-box-sizing: inherit;
box-sizing: inherit; 
}
</style>
<div  data-role="content">
<form action="{:U('Member/dobuy')}" method="post" name="form1" data-ajax="false">
<div class="panel panel-danger">
  <div class="panel-heading">订单列表</div>
  <div class="panel-body">
    <table class="table table-bordered">
<tr><td  align="center">编号</td>
  <td colspan="2">名称</td>
  <td align="center">书刊ISBN号</td>
  <td align="center">数量</td>
  <td  align="center">单价</td>
  <td  align="center">小计</td></tr>
<php>$total_fee=0;$yun_price=0;</php>
<volist name="list" id="vo">
<neq name="vo.name" value="">
<php>$yun_price = ($vo['yun_price']>=$yun_price?$vo['yun_price']:$yun_price);</php>
<tr><td align="center" valign="middle">{$vo.id}<input name="id[]" type="hidden" value="{$vo.id}" /></td>
<td width="82" align="center" valign="middle"><img src="{$vo.pic}" width="20" height="20" /><input name="pic[]" type="hidden" value="{$vo.pic}" /></td>
<td align="left" valign="middle"><a href="{:url('articles',$vo['id'])}" target="_blank">{$vo.name}</a><input name="name[]" type="hidden" value="{$vo.name}" /></td>
<td align="center" valign="middle">{$vo.gtype}<input name="gtype[]" type="hidden" value="{$vo.gtype}" /></td>
<td align="center" valign="middle">{$vo.qty}<input name="qty[]" type="hidden" value="{$vo.qty}" /></td>
<td align="center" valign="middle">{$vo.price}<input name="price[]" type="hidden" value="{$vo.price}" /></td>
<td align="center" valign="middle"><php>$total_fee += ($vo[qty]*$vo[price])*1; echo $vo[qty]*$vo[price];</php></td></tr></neq>
</volist>
</table>
</div>
  </div>
  
 <div class="panel">
  <div class="panel-heading">送货信息(可修改)</div>
  <div class="panel-body">
<table width="100%" class="table table-bordered">
<tr><td  align="center">姓名</td><td align="left"><input type="text" name="realname" value="{$uinfo.realname}" /></td></tr>
<tr><td  align="center">手机</td><td align="left"><input type="text" name="tel" value="{$uinfo.tel}" class="dline" /></td></tr>
<tr><td  align="center">区域</td><td align="left"><select  name="province" id="province"  ></select><select  name="city" id="city"></select><select  name="area" id="area" ></select></td></tr>
<tr><td  align="center">地址</td><td align="left"><input type="text" value="{$uinfo.address}" name="address" class="dline" style="width:350px;" /></td></tr>
<tr><td  align="center">支付方式</td><td align="left"><select name="trade_type">
  <php>$trade_type = C('TRADE_TYPE');</php>
  <volist name='trade_type' id="vo" key='k'>
  <option value="{$k}">{$vo}</option>
  </volist>
  </select></td></tr>
</table>
</div>
  </div>
  <div style="text-align:right">运费：{$yun_price}&nbsp;&nbsp;合计：<font style="color:#F00; font-size:14px; font-weight:bold;">{$total_fee+$yun_price}</font>元&nbsp;&nbsp;&nbsp;&nbsp;
  <input name="iscart" type="hidden" value="{$_REQUEST['iscart']}" /><input type="submit" value="提交订单" data-theme="b" /><br><br>
  </form>
</div>
<script type="text/javascript" language="javascript" src="__PUBLIC__/js/jsAddress.js"></script>
<script>
$(document).ready(function() {
	addressInit('province', 'city', 'area');
	$('#province').val('{$uinfo.province}').change();
	$('#city').val('{$uinfo.city}').change();
	$('#area').val('{$uinfo.area}').change();
});	
</script>
</div>
</div>
<include file="$footer" />
</body>
</html>